package com.slz3.business.module.goodsManagement.gooTypeLevel2.repository;

import com.slz3.business.frame.module.Repositorys;
import com.slz3.business.module.goodsManagement.gooTypeLevel2.domain.GooTypeLevel2;

import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.stream.Collectors;

public class GooTypeLevel2CustomizedRepositoryImpl implements GooTypeLevel2CustomizedRepository {
    @Override
    public void test() {
        System.err.println(Repositorys.gooTypeLevel2);
        System.err.println("test: customized repository");
    }

    @Override
    public Map<UUID, GooTypeLevel2> findAllMapByUuid() {
        List<GooTypeLevel2> typeLevel1All = Repositorys.gooTypeLevel2.findAll();
        return typeLevel1All.stream().collect(Collectors.toMap(GooTypeLevel2::getUuid, c -> c));
    }
}
